home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5471 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  26 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: cs.vu.nl!irmen
  3. From: irmen@cs.vu.nl (Irmen de Jong)
  4. Subject: Waiting on >1 file
  5. Nntp-Posting-Host: prauw.cs.vu.nl
  6. Sender: news@cs.vu.nl
  7. Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
  8. Date: Fri, 15 Mar 1996 10:09:34 GMT
  9. X-Newsreader: TIN [version 1.2 PL2]
  10. Message-ID: <DoB07y.AsM.0.-s@cs.vu.nl>
  11.  
  12. Say I have more than one file open. In my case all files are (virtual) console
  13. files, like CON: or AUX:. What I want to do is to wait on ALL these
  14. files simultaneously until one (or more) of them are ready to read, i.e.
  15. have input available. dos.library/WaitForChar() only works for one file,
  16. i need something like select() on sockets, but on files instead.
  17.  
  18. Oh I tried the WaitSelect() from AmiTCP's bsdsocket.library but that
  19. beast only works on real sockets, not on normal file descriptors. *sigh*
  20.  
  21. Anyone?
  22.  
  23. --
  24. / Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/)  \
  25. \                 ``Nothing lasts forever'' -- Species                    /
  26.